#set(title="人事管理")
#@layout()

#define body()
<div class="layui-tab layui-tab-brief tab" lay-filter="tab">
    <ul class="layui-tab-title">
        <li>人员</li>
        <li>部门</li>
        <li class="layui-this">调动</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-main site-inline">
            <div class="site-tree">
                <ul class="layui-tree">
                    <li>
                        <h2 id="test">类型</h2>
                    </li>
                    <li class="site-tree-noicon">
                        <a class="department" href="/emp/entry"><cite>入职</cite></a>
                    </li>
                    <li class="site-tree-noicon">
                        <a class="department" href="/emp/dimission"><cite>离职</cite></a>
                    </li>
                    <li class="site-tree-noicon">
                        <a class="department" href="/emp/transfer"><cite>调动</cite></a>
                    </li>
                </ul>
            </div>
            <div class="site-content">
                <!--<div>-->
                <!--<form action="" class="layui-form">-->
                <!--<div class="layui-form-item">-->
                <!--<label class="layui-form-label">员工编号</label>-->
                <!--<div class="layui-input-inline">-->
                <!--<input autocomplete="off" class="layui-input"  name="id" placeholder="请输入员工编号"-->
                <!--type="text">-->
                <!--</div>-->
                <!--<button class="layui-btn" lay-filter="search" lay-submit>搜索</button>-->

                <!--</div>-->
                <!--</form>-->
                <!--</div>-->
                <fieldset class="layui-elem-field layui-field-title">
                    <legend>
                        <a>离职信息</a>
                    </legend>
                </fieldset>

                <div class="layui-tab layui-tab-brief" lay-filter="dimission">
                    <ul class="layui-tab-title">
                        <li class="layui-this">待处理</li>
                        <li>我申请的</li>
                        <li>已处理</li>
                        <li class="new-party">
                            <button class="layui-btn layui-btn-danger layui-btn-small" id="newDimission">申请离职</button>
                        </li>
                        #if(admin)
                        <li class="new-party">
                            <button class="layui-btn layui-btn-danger layui-btn-small" id="newFire">开除员工</button>
                        </li>
                        #end
                    </ul>
                    <div class="layui-tab-content">
                        #include("dimission/waiting.html")
                        #include("dimission/myOwn.html")
                        #include("dimission/checked.html")
                    </div>
                </div>


            </div>
        </div>

    </div>
</div>


#end

#define css()
<link rel="stylesheet" href="/assets/css/emp.css">
#end


#define js()
<script src="/assets/js/dimission.js"></script>
#end


<!--<script type="text/html" id="barDemo">-->
<!--<a class="layui-btn layui-btn-xs" lay-event="download">编辑</a>-->
<!--<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>-->
<!--</script>-->

<form class="layui-form new-emp-form" action="" id="newDimissionForm">

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">离职理由</label>
        <div class="layui-input-block">
            <textarea name="reason" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="newDimissionSubmit">立即提交</button>
            <!--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
        </div>
    </div>
</form>


<form class="layui-form new-emp-form" action="" id="newFireForm">

    <div class="layui-form-item">
        <label class="layui-form-label">员工编号</label>
        <div class="layui-input-inline">
            <input type="text" name="id" placeholder="请输入员工编号" lay-verify="number"
                   autocomplete="off"
                   class="layui-input">
        </div>

        <div class="layui-form-mid layui-word-aux" id="explain">请输入本部门在职员工员工编号</div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">开除理由</label>
        <div class="layui-input-block">
            <textarea name="reason" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="newFireSubmit">立即提交</button>
            <!--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
        </div>
    </div>
</form>